<template>
    <div>我是子组件{{ title }}-{{ obj.age }}</div>
    <button @click="title++">点击title</button>
    <button @click="obj.age++">点击age</button>
</template>

<script setup>
import { ref} from "vue";
import {title,obj}  from "./index";

</script>

<style scoped>
.contClass {
position: fixed;
right: 50px;
bottom: 50px;
}
</style>
  